import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import generate from '@feidao/web/atom/browser/url/query2url';
import { captcha } from '../../atom-web/config';

export default async function a001(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const param = { opt: JSON.stringify({ width: 200 }) };
	// 获取图片验证码
	const url = generate(param, captcha);
	const img = fd.data.node.querySelector('[data-feidao-id="captcha"]') as HTMLImageElement;
	img.src = url;
}
